import request from '@/utils/request'

// 查询每周已制定套餐记录列表
export function listWeekly_setmeal(query) {
  return request({
    url: '/canteen/weekly_setmeal/list',
    method: 'get',
    params: query
  })
}

// 查询每周已制定套餐记录详细
export function getWeekly_setmeal(id) {
  return request({
    url: '/canteen/weekly_setmeal/' + id,
    method: 'get'
  })
}

// 新增每周已制定套餐记录
export function addWeekly_setmeal(data) {
  return request({
    url: '/canteen/weekly_setmeal',
    method: 'post',
    data: data
  })
}

// 修改每周已制定套餐记录
export function updateWeekly_setmeal(data) {
  return request({
    url: '/canteen/weekly_setmeal',
    method: 'put',
    data: data
  })
}

// 删除每周已制定套餐记录
export function delWeekly_setmeal(id) {
  return request({
    url: '/canteen/weekly_setmeal/' + id,
    method: 'delete'
  })
}
export function getSetMealInfo(){
  return request({
    url:'/canteen/weekly_setmeal/getMealInfo',
    method: 'get'
  })
}
